//

// (  )
//

package com.tools.acceleratecore.xlib.util;

import android.text.TextUtils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;

public class UtilIO {
    public UtilIO() {
    }

    public static String readFirstLineInFile(String strFilePath) {
        if (TextUtils.isEmpty(strFilePath)) {
            return null;
        } else {
            File file = new File(strFilePath);
            if (!file.exists()) {
                return null;
            } else {
                try {
                    String str = null;
                    BufferedReader br = new BufferedReader(new FileReader(file));
                    str = br.readLine();
                    br.close();
                    return str;
                } catch (Exception var4) {
                    var4.printStackTrace();
                    return null;
                }
            }
        }
    }
}
